'''
 * @ author     ：廖传港
 * @ date       ：Created in 2020/10/22 10:41
 * @ description：
 * @ modified By：
 * @ ersion     : 
 * @File        : Display_images.py 
'''
import cv2 as cv
import numpy as np

img = cv.imread("C:/Users/LCG/Desktop/data/dog.4006.jpg", 1)
x=np.array(img)
print(x)
shrink = cv.resize(img, 100,100, interpolation=cv.INTER_AREA)
# cv.namedWindow('狗狗图片')
cv.imshow("狗狗图片", img)

cv.waitKey()
cv.destroyAllWindows()

# # -*- coding: utf-8 -*-
# import numpy as np
# import matplotlib.pyplot as plt
# import cv2
# img = plt.imread('C:/Users/LCG/Desktop/data/test/dog.4144.jpg')
# x=np.array(img)
# print(x)
# print(x.shape)
# fig = plt.figure('show picture')#图片的名字
# # 直接显示一张图片,是使用下面这种方法,等效于之前操作ax的4条语句
# plt.imshow(img)
# plt.axis('off') # 不显示刻度
# plt.show()